{{#>header}}
  {{#*inline "menuList"}}
      <li class="nav-item">
        <a class="nav-link" href="/home">Home </a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="/users/loginOut">注销</a>
      </li>      
      <li class="nav-item">
        <a class="nav-link" href="/publish/toAdd">发表</a>
      </li>
  {{/inline}}
{{/header}}
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
  <div class="container">
    <h1 class="display-3">{{user.showName}}</h1>
    <p>This is my home page.</p>
    <p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more &raquo;</a></p>
  </div>
</div>

<div class="container">
  <!-- Example row of columns -->
  <div class="row">
    {{#myBlogList}}
    <div class="col-md-4">
      <h2>{{title}}</h2>
      <p>{{content}} </p>
      <p><a class="btn btn-secondary" href="/publish/toDetail/{{id}}/home" role="button">View details &raquo;</a></p>
    </div>
    {{/myBlogList}}
  </div>

  <hr>

  <footer>
    <p>&copy; Company 2017</p>
  </footer>
</div> <!-- /container -->
<script type="text/javascript">
  // var $ =require('jquery')(require('jsdom').jsdom().defaultView);
  // $.ajax({
  //   url:'/publish/mylist',
  //   dataType:'JSON',
  //   type:'get',
  //   success:function(res){
  //       if(!res.error){

  //       }
  //   }
  // })
</script>
